package com.github.cyf.async.context;


import com.github.cyf.async.entity.LoginVal;

/**
 * @author chenyifan
 * @create 2025-05-08 11:04
 */
public class OauthContext {
    private static final ThreadLocal<LoginVal> loginValThreadLocal = new ThreadLocal<>();

    public static  LoginVal get(){
        return loginValThreadLocal.get();
    }
    public static void set(LoginVal loginVal){
        loginValThreadLocal.set(loginVal);
    }
    public static void clear(){
        loginValThreadLocal.remove();
    }
}